<?php
 
 // Defines the Whale object
// When rebuilding SilverStripe DB, this will create DB table for Whale
 
class Whale extends DataObject {
   
   //Define object elements
   static $db = array(
      'Whale_ID' => 'Text',
	  'Gender' => 'Text',
	  'Num_Calves' => 'Int',
      'Pod_Size' => 'Int'
   );
   
   //Define one to many relationship to other tables
   static $has_many = array(
		'Photos' => 'Photo',
	);
	
	//Define many to many relationship to other tables
	static $belongs_many_many = array(
      'Sightings' => 'Sighting'
   );	
}

?>